package com.yinhai.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class GetCurrentTime {
	public static String getTime(){
		String timeStr = "";
		Date now = new Date();
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		timeStr = dateFormat.format(now); 
		return timeStr;
	}
	public static String getUuid(){
		String uuid = UUID.randomUUID().toString();
		return uuid;
	}
}
